package hutool;

import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUtil;
import org.junit.Test;

import java.util.Date;

public class DateTest {
   @Test
   public void test1(){
       DateTime dateTime=DateUtil.parse("2021/08/22 10:22:11");
       System.out.println(dateTime.isBefore(new Date()));
       System.out.println(dateTime.before(new Date()));


   }
}
